package com.hmall.item.constants;

public class ItemConstants {
   static final String MAPPING_TEMPLATE = "{\n" +
           "  \"mappings\": {\n" +
           "    \"properties\": {\n" +
           "      \"id\": {\n" +
           "        \"type\": \"keyword\"\n" +
           "      },\n" +
           "      \"name\":{\n" +
           "        \"type\": \"text\",\n" +
           "        \"analyzer\": \"ik_max_word\"\n" +
           "      },\n" +
           "      \"price\":{\n" +
           "        \"type\": \"integer\"\n" +
           "      },\n" +
           "      \"stock\":{\n" +
           "        \"type\": \"integer\"\n" +
           "      },\n" +
           "      \"image\":{\n" +
           "        \"type\": \"keyword\",\n" +
           "        \"index\": false\n" +
           "      },\n" +
           "      \"category\":{\n" +
           "        \"type\": \"keyword\"\n" +
           "      },\n" +
           "      \"brand\":{\n" +
           "        \"type\": \"keyword\"\n" +
           "      },\n" +
           "      \"sold\":{\n" +
           "        \"type\": \"integer\"\n" +
           "      },\n" +
           "      \"commentCount\":{\n" +
           "        \"type\": \"integer\"\n" +
           "      },\n" +
           "      \"isAD\":{\n" +
           "        \"type\": \"boolean\"\n" +
           "      },\n" +
           "      \"updateTime\":{\n" +
           "        \"type\": \"date\"\n" +
           "      }\n" +
           "    }\n" +
           "  }\n" +
           "}";
}